﻿Imports Co9320.NamaAlert.Model
Imports System.Windows

<Plugin("18A94480-81DA-479b-8A00-74CD6DFEFA33", _
        HasAlertFunction:=True)> _
Public Class WindowAlert
    Implements IPlugin

    Public Event RequestOpenUri(ByVal sender As Object, ByVal e As OpenUriEventArgs) Implements IPlugin.RequestOpenUri
    Public Event RequestSaveSettings(ByVal sender As Object, ByVal e As SaveSettingsEventArgs) Implements IPlugin.RequestSaveSettings
    Public Event RequestShowAlertWindow(ByVal sender As Object, ByVal e As ShowAlertWindowEventArgs) Implements IPlugin.RequestShowAlertWindow
    Public Event RequestShowBalloonTip(ByVal sender As Object, ByVal e As ShowBalloonTipEventArgs) Implements IPlugin.RequestShowBalloonTip
    Public Event SendSystemMessage(ByVal sender As Object, ByVal e As Model.SystemMessageEventArgs) Implements IPlugin.SendSystemMessage

    Public Sub EditOptions(ByVal dialogOwner As System.Windows.Window) Implements IPlugin.EditOptions
        Throw New NotSupportedException
    End Sub

    Public Sub ExecuteAction(ByVal program As Model.LiveProgram) Implements IPlugin.ExecuteAction
        Throw New NotSupportedException
    End Sub

    Public Sub ExecuteAlert(ByVal program As Model.LiveProgram) Implements IPlugin.ExecuteAlert
        OnRequestShowAlertWindow(New ShowAlertWindowEventArgs())
    End Sub

    Public Sub ExecuteWhenLiveProgramStarted(ByVal liveProgram As Model.LiveProgram) Implements IPlugin.ExecuteWhenLiveProgramStarted
        Throw New NotSupportedException
    End Sub

    Public Sub Initialize(ByVal settings As IPluginSettings) Implements IPlugin.Initialize
        ' ドゥーナッシング
    End Sub

    Protected Sub OnRequestShowAlertWindow(ByVal e As ShowAlertWindowEventArgs)
        RaiseEvent RequestShowAlertWindow(Me, e)
    End Sub
End Class
